<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>VectSharp: VectSharp.ThreeD.MaskedLightSource Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">VectSharp<span id="projectnumber">&#160;2.6.1</span>
   </div>
   <div id="projectbrief">A light library for C# vector graphics</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_vect_sharp_1_1_three_d_1_1_masked_light_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_vect_sharp_1_1_three_d_1_1_masked_light_source-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">VectSharp.ThreeD.MaskedLightSource Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Represents a point light source with a stencil in front of it.   
 <a href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for VectSharp.ThreeD.MaskedLightSource:</div>
<div class="dyncontent">
<div class="center"><img src="class_vect_sharp_1_1_three_d_1_1_masked_light_source__inherit__graph.png" border="0" usemap="#a_vect_sharp_8_three_d_8_masked_light_source_inherit__map" alt="Inheritance graph"/></div>
<map name="a_vect_sharp_8_three_d_8_masked_light_source_inherit__map" id="a_vect_sharp_8_three_d_8_masked_light_source_inherit__map">
<area shape="rect" title="Represents a point light source with a stencil in front of it." alt="" coords="5,79,213,119"/>
<area shape="rect" href="interface_vect_sharp_1_1_three_d_1_1_i_light_source.html" title="Represents a light source." alt="" coords="62,5,157,31"/>
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5885bef79f22807507c38a0cb851ab46"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#a5885bef79f22807507c38a0cb851ab46">MaskedLightSource</a> (double intensity, Point3D position, NormalizedVector3D direction, double distance, <a class="el" href="class_vect_sharp_1_1_graphics_path.html">GraphicsPath</a> mask, double maskOrientation, double triangulationResolution)</td></tr>
<tr class="memdesc:a5885bef79f22807507c38a0cb851ab46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html" title="Represents a point light source with a stencil in front of it.">MaskedLightSource</a> by triangulating the specified <a class="el" href="class_vect_sharp_1_1_graphics_path.html" title="Represents a graphics path that can be filled or stroked.">GraphicsPath</a>.   <a href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#a5885bef79f22807507c38a0cb851ab46">More...</a><br /></td></tr>
<tr class="separator:a5885bef79f22807507c38a0cb851ab46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8b3a6d75186578b59c97f2eb4cdc7ab"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#af8b3a6d75186578b59c97f2eb4cdc7ab">MaskedLightSource</a> (double intensity, Point3D position, NormalizedVector3D direction, double distance, IEnumerable&lt; <a class="el" href="class_vect_sharp_1_1_graphics_path.html">GraphicsPath</a> &gt; triangulatedMask, double maskOrientation)</td></tr>
<tr class="memdesc:af8b3a6d75186578b59c97f2eb4cdc7ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html" title="Represents a point light source with a stencil in front of it.">MaskedLightSource</a> using the specified <em>triangulatedMask</em> .   <a href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#af8b3a6d75186578b59c97f2eb4cdc7ab">More...</a><br /></td></tr>
<tr class="separator:af8b3a6d75186578b59c97f2eb4cdc7ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a218ec606394abea46897026b94d0337d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_vect_sharp_1_1_three_d_1_1_light_intensity.html">LightIntensity</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#a218ec606394abea46897026b94d0337d">GetLightAt</a> (Point3D point)</td></tr>
<tr class="memdesc:a218ec606394abea46897026b94d0337d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the light intensity at the specified point, without taking into account any obstructions. <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">point</td><td>The Point3DElement at which the light intensity should be computed.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
  <a href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#a218ec606394abea46897026b94d0337d">More...</a><br /></td></tr>
<tr class="separator:a218ec606394abea46897026b94d0337d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac49acc5a6014d6e112d24143e413abc6"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#ac49acc5a6014d6e112d24143e413abc6">GetObstruction</a> (Point3D point, IEnumerable&lt; Triangle3DElement &gt; shadowingTriangles)</td></tr>
<tr class="memdesc:ac49acc5a6014d6e112d24143e413abc6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the amount of obstruction of the light that results at <em>point</em>  due to the specified <em>shadowingTriangles</em> . <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">point</td><td>The Point3D at which the obstruction should be computed.</td></tr>
    <tr><td class="paramname">shadowingTriangles</td><td>A collection of Triangle3DElement casting shadows.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if the light is completely obstructed, 0 if the light is completely visible, a value between these if the light is partially obstructed.</dd></dl>
  <a href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#ac49acc5a6014d6e112d24143e413abc6">More...</a><br /></td></tr>
<tr class="separator:ac49acc5a6014d6e112d24143e413abc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78711e6c0ecdcdd63c60f1b283f5775c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_vect_sharp_1_1_three_d_1_1_light_intensity.html">LightIntensity</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_vect_sharp_1_1_three_d_1_1_i_light_source.html#a78711e6c0ecdcdd63c60f1b283f5775c">GetLightAt</a> (Point3D point)</td></tr>
<tr class="memdesc:a78711e6c0ecdcdd63c60f1b283f5775c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the light intensity at the specified point, without taking into account any obstructions.   <a href="interface_vect_sharp_1_1_three_d_1_1_i_light_source.html#a78711e6c0ecdcdd63c60f1b283f5775c">More...</a><br /></td></tr>
<tr class="separator:a78711e6c0ecdcdd63c60f1b283f5775c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a084ddbd7d21cf83b7b4eb09b9d3461c8"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_vect_sharp_1_1_three_d_1_1_i_light_source.html#a084ddbd7d21cf83b7b4eb09b9d3461c8">GetObstruction</a> (Point3D point, IEnumerable&lt; Triangle3DElement &gt; shadowingTriangles)</td></tr>
<tr class="memdesc:a084ddbd7d21cf83b7b4eb09b9d3461c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the amount of obstruction of the light that results at <em>point</em>  due to the specified <em>shadowingTriangles</em> .   <a href="interface_vect_sharp_1_1_three_d_1_1_i_light_source.html#a084ddbd7d21cf83b7b4eb09b9d3461c8">More...</a><br /></td></tr>
<tr class="separator:a084ddbd7d21cf83b7b4eb09b9d3461c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:acad9911b7660eacc598c99ddbfc92763"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#acad9911b7660eacc598c99ddbfc92763">CastsShadow</a> = true<code> [get, set]</code></td></tr>
<tr class="memdesc:acad9911b7660eacc598c99ddbfc92763"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether the light casts a shadow or not.   <a href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#acad9911b7660eacc598c99ddbfc92763">More...</a><br /></td></tr>
<tr class="separator:acad9911b7660eacc598c99ddbfc92763"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec1e3d72451a22404b5c9477af9764b4"><td class="memItemLeft" align="right" valign="top">Point3D&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#aec1e3d72451a22404b5c9477af9764b4">Position</a><code> [get]</code></td></tr>
<tr class="memdesc:aec1e3d72451a22404b5c9477af9764b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">The position of the light source.   <a href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#aec1e3d72451a22404b5c9477af9764b4">More...</a><br /></td></tr>
<tr class="separator:aec1e3d72451a22404b5c9477af9764b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d691ed7328aeec4de160a180582760f"><td class="memItemLeft" align="right" valign="top">Point3D&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#a7d691ed7328aeec4de160a180582760f">Origin</a><code> [get]</code></td></tr>
<tr class="memdesc:a7d691ed7328aeec4de160a180582760f"><td class="mdescLeft">&#160;</td><td class="mdescRight">The projection of the <a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#aec1e3d72451a22404b5c9477af9764b4" title="The position of the light source.">Position</a> on the mask plane along the light's <a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#abfd20c38eef9066e9f398824c5c75435" title="The direction of the light.">Direction</a>.   <a href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#a7d691ed7328aeec4de160a180582760f">More...</a><br /></td></tr>
<tr class="separator:a7d691ed7328aeec4de160a180582760f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfd20c38eef9066e9f398824c5c75435"><td class="memItemLeft" align="right" valign="top">NormalizedVector3D&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#abfd20c38eef9066e9f398824c5c75435">Direction</a><code> [get]</code></td></tr>
<tr class="memdesc:abfd20c38eef9066e9f398824c5c75435"><td class="mdescLeft">&#160;</td><td class="mdescRight">The direction of the light.   <a href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#abfd20c38eef9066e9f398824c5c75435">More...</a><br /></td></tr>
<tr class="separator:abfd20c38eef9066e9f398824c5c75435"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01eab9e95538ca7d4a6fa0effbeb89f7"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#a01eab9e95538ca7d4a6fa0effbeb89f7">Distance</a><code> [get]</code></td></tr>
<tr class="memdesc:a01eab9e95538ca7d4a6fa0effbeb89f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">The distance between the light source and the mask plane.   <a href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#a01eab9e95538ca7d4a6fa0effbeb89f7">More...</a><br /></td></tr>
<tr class="separator:a01eab9e95538ca7d4a6fa0effbeb89f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c39aabb3788738f50974651f08504ae"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#a5c39aabb3788738f50974651f08504ae">Intensity</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a5c39aabb3788738f50974651f08504ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">The base intensity of the light.   <a href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#a5c39aabb3788738f50974651f08504ae">More...</a><br /></td></tr>
<tr class="separator:a5c39aabb3788738f50974651f08504ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a00095fb8bf52ef53c1ff49b018b408"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#a4a00095fb8bf52ef53c1ff49b018b408">DistanceAttenuationExponent</a> = 2<code> [get, set]</code></td></tr>
<tr class="memdesc:a4a00095fb8bf52ef53c1ff49b018b408"><td class="mdescLeft">&#160;</td><td class="mdescRight">An exponent determining how fast the light attenuates with increasing distance. Set to 0 to disable distance attenuation.   <a href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#a4a00095fb8bf52ef53c1ff49b018b408">More...</a><br /></td></tr>
<tr class="separator:a4a00095fb8bf52ef53c1ff49b018b408"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57f148002613d253aa352aedb7bb4ab4"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#a57f148002613d253aa352aedb7bb4ab4">AngleAttenuationExponent</a> = 1<code> [get, set]</code></td></tr>
<tr class="memdesc:a57f148002613d253aa352aedb7bb4ab4"><td class="mdescLeft">&#160;</td><td class="mdescRight">An exponent determining how fast the light attenuates away from the light's axis. Set to 0 to disable angular attenuation.   <a href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#a57f148002613d253aa352aedb7bb4ab4">More...</a><br /></td></tr>
<tr class="separator:a57f148002613d253aa352aedb7bb4ab4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_interface_vect_sharp_1_1_three_d_1_1_i_light_source"><td colspan="2" onclick="javascript:toggleInherit('properties_interface_vect_sharp_1_1_three_d_1_1_i_light_source')"><img src="closed.png" alt="-"/>&#160;Properties inherited from <a class="el" href="interface_vect_sharp_1_1_three_d_1_1_i_light_source.html">VectSharp.ThreeD.ILightSource</a></td></tr>
<tr class="memitem:a407cca0ec0c94de4cfdce86ee137f208 inherit properties_interface_vect_sharp_1_1_three_d_1_1_i_light_source"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_vect_sharp_1_1_three_d_1_1_i_light_source.html#a407cca0ec0c94de4cfdce86ee137f208">CastsShadow</a><code> [get]</code></td></tr>
<tr class="memdesc:a407cca0ec0c94de4cfdce86ee137f208 inherit properties_interface_vect_sharp_1_1_three_d_1_1_i_light_source"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether the light casts a shadow or not.   <a href="interface_vect_sharp_1_1_three_d_1_1_i_light_source.html#a407cca0ec0c94de4cfdce86ee137f208">More...</a><br /></td></tr>
<tr class="separator:a407cca0ec0c94de4cfdce86ee137f208 inherit properties_interface_vect_sharp_1_1_three_d_1_1_i_light_source"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Represents a point light source with a stencil in front of it.  </p>

<p class="definition">Definition at line <a class="el" href="_lights_8cs_source.html#l00385">385</a> of file <a class="el" href="_lights_8cs_source.html">Lights.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a5885bef79f22807507c38a0cb851ab46" name="a5885bef79f22807507c38a0cb851ab46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5885bef79f22807507c38a0cb851ab46">&#9670;&#160;</a></span>MaskedLightSource() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VectSharp.ThreeD.MaskedLightSource.MaskedLightSource </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>intensity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Point3D&#160;</td>
          <td class="paramname"><em>position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">NormalizedVector3D&#160;</td>
          <td class="paramname"><em>direction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>distance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_graphics_path.html">GraphicsPath</a>&#160;</td>
          <td class="paramname"><em>mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>maskOrientation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>triangulationResolution</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new <a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html" title="Represents a point light source with a stencil in front of it.">MaskedLightSource</a> by triangulating the specified <a class="el" href="class_vect_sharp_1_1_graphics_path.html" title="Represents a graphics path that can be filled or stroked.">GraphicsPath</a>.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">intensity</td><td>The base intensity of the light.</td></tr>
    <tr><td class="paramname">position</td><td>The position of the light source.</td></tr>
    <tr><td class="paramname">direction</td><td>The direction of the light.</td></tr>
    <tr><td class="paramname">distance</td><td>The distance between the light source and the mask plane.</td></tr>
    <tr><td class="paramname">mask</td><td>A <a class="el" href="class_vect_sharp_1_1_graphics_path.html" title="Represents a graphics path that can be filled or stroked.">GraphicsPath</a> representing the transparent part of the mask.</td></tr>
    <tr><td class="paramname">maskOrientation</td><td>An angle in radians determining the orientation of the 2D mask in the mask plane.</td></tr>
    <tr><td class="paramname">triangulationResolution</td><td>The resolution to use to triangulate the <em>mask</em> .</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_lights_8cs_source.html#l00437">437</a> of file <a class="el" href="_lights_8cs_source.html">Lights.cs</a>.</p>

</div>
</div>
<a id="af8b3a6d75186578b59c97f2eb4cdc7ab" name="af8b3a6d75186578b59c97f2eb4cdc7ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8b3a6d75186578b59c97f2eb4cdc7ab">&#9670;&#160;</a></span>MaskedLightSource() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VectSharp.ThreeD.MaskedLightSource.MaskedLightSource </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>intensity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Point3D&#160;</td>
          <td class="paramname"><em>position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">NormalizedVector3D&#160;</td>
          <td class="paramname"><em>direction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>distance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IEnumerable&lt; <a class="el" href="class_vect_sharp_1_1_graphics_path.html">GraphicsPath</a> &gt;&#160;</td>
          <td class="paramname"><em>triangulatedMask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>maskOrientation</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new <a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html" title="Represents a point light source with a stencil in front of it.">MaskedLightSource</a> using the specified <em>triangulatedMask</em> .  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">intensity</td><td>The base intensity of the light.</td></tr>
    <tr><td class="paramname">position</td><td>The position of the light source.</td></tr>
    <tr><td class="paramname">direction</td><td>The direction of the light.</td></tr>
    <tr><td class="paramname">distance</td><td>The distance between the light source and the mask plane.</td></tr>
    <tr><td class="paramname">triangulatedMask</td><td>A collection of <a class="el" href="class_vect_sharp_1_1_graphics_path.html" title="Represents a graphics path that can be filled or stroked.">GraphicsPath</a>s representing the transparent part of the mask. Each <a class="el" href="class_vect_sharp_1_1_graphics_path.html" title="Represents a graphics path that can be filled or stroked.">GraphicsPath</a> should represent a single triangle.</td></tr>
    <tr><td class="paramname">maskOrientation</td><td>An angle in radians determining the orientation of the 2D mask in the mask plane.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_lights_8cs_source.html#l00451">451</a> of file <a class="el" href="_lights_8cs_source.html">Lights.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a218ec606394abea46897026b94d0337d" name="a218ec606394abea46897026b94d0337d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a218ec606394abea46897026b94d0337d">&#9670;&#160;</a></span>GetLightAt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_vect_sharp_1_1_three_d_1_1_light_intensity.html">LightIntensity</a> VectSharp.ThreeD.MaskedLightSource.GetLightAt </td>
          <td>(</td>
          <td class="paramtype">Point3D&#160;</td>
          <td class="paramname"><em>point</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Computes the light intensity at the specified point, without taking into account any obstructions. <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">point</td><td>The Point3DElement at which the light intensity should be computed.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
 </p>

<p>Implements <a class="el" href="interface_vect_sharp_1_1_three_d_1_1_i_light_source.html#a78711e6c0ecdcdd63c60f1b283f5775c">VectSharp.ThreeD.ILightSource</a>.</p>

<p class="definition">Definition at line <a class="el" href="_lights_8cs_source.html#l00483">483</a> of file <a class="el" href="_lights_8cs_source.html">Lights.cs</a>.</p>

</div>
</div>
<a id="ac49acc5a6014d6e112d24143e413abc6" name="ac49acc5a6014d6e112d24143e413abc6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac49acc5a6014d6e112d24143e413abc6">&#9670;&#160;</a></span>GetObstruction()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.ThreeD.MaskedLightSource.GetObstruction </td>
          <td>(</td>
          <td class="paramtype">Point3D&#160;</td>
          <td class="paramname"><em>point</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IEnumerable&lt; Triangle3DElement &gt;&#160;</td>
          <td class="paramname"><em>shadowingTriangles</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines the amount of obstruction of the light that results at <em>point</em>  due to the specified <em>shadowingTriangles</em> . <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">point</td><td>The Point3D at which the obstruction should be computed.</td></tr>
    <tr><td class="paramname">shadowingTriangles</td><td>A collection of Triangle3DElement casting shadows.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if the light is completely obstructed, 0 if the light is completely visible, a value between these if the light is partially obstructed.</dd></dl>
 </p>

<p>Implements <a class="el" href="interface_vect_sharp_1_1_three_d_1_1_i_light_source.html#a084ddbd7d21cf83b7b4eb09b9d3461c8">VectSharp.ThreeD.ILightSource</a>.</p>

<p class="definition">Definition at line <a class="el" href="_lights_8cs_source.html#l00556">556</a> of file <a class="el" href="_lights_8cs_source.html">Lights.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="a57f148002613d253aa352aedb7bb4ab4" name="a57f148002613d253aa352aedb7bb4ab4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57f148002613d253aa352aedb7bb4ab4">&#9670;&#160;</a></span>AngleAttenuationExponent</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.ThreeD.MaskedLightSource.AngleAttenuationExponent = 1</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>An exponent determining how fast the light attenuates away from the light's axis. Set to 0 to disable angular attenuation.  </p>

<p class="definition">Definition at line <a class="el" href="_lights_8cs_source.html#l00425">425</a> of file <a class="el" href="_lights_8cs_source.html">Lights.cs</a>.</p>

</div>
</div>
<a id="acad9911b7660eacc598c99ddbfc92763" name="acad9911b7660eacc598c99ddbfc92763"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acad9911b7660eacc598c99ddbfc92763">&#9670;&#160;</a></span>CastsShadow</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool VectSharp.ThreeD.MaskedLightSource.CastsShadow = true</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Determines whether the light casts a shadow or not.  </p>

<p>Implements <a class="el" href="interface_vect_sharp_1_1_three_d_1_1_i_light_source.html#a407cca0ec0c94de4cfdce86ee137f208">VectSharp.ThreeD.ILightSource</a>.</p>

<p class="definition">Definition at line <a class="el" href="_lights_8cs_source.html#l00388">388</a> of file <a class="el" href="_lights_8cs_source.html">Lights.cs</a>.</p>

</div>
</div>
<a id="abfd20c38eef9066e9f398824c5c75435" name="abfd20c38eef9066e9f398824c5c75435"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfd20c38eef9066e9f398824c5c75435">&#9670;&#160;</a></span>Direction</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">NormalizedVector3D VectSharp.ThreeD.MaskedLightSource.Direction</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The direction of the light.  </p>

<p class="definition">Definition at line <a class="el" href="_lights_8cs_source.html#l00403">403</a> of file <a class="el" href="_lights_8cs_source.html">Lights.cs</a>.</p>

</div>
</div>
<a id="a01eab9e95538ca7d4a6fa0effbeb89f7" name="a01eab9e95538ca7d4a6fa0effbeb89f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01eab9e95538ca7d4a6fa0effbeb89f7">&#9670;&#160;</a></span>Distance</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.ThreeD.MaskedLightSource.Distance</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The distance between the light source and the mask plane.  </p>

<p class="definition">Definition at line <a class="el" href="_lights_8cs_source.html#l00408">408</a> of file <a class="el" href="_lights_8cs_source.html">Lights.cs</a>.</p>

</div>
</div>
<a id="a4a00095fb8bf52ef53c1ff49b018b408" name="a4a00095fb8bf52ef53c1ff49b018b408"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a00095fb8bf52ef53c1ff49b018b408">&#9670;&#160;</a></span>DistanceAttenuationExponent</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.ThreeD.MaskedLightSource.DistanceAttenuationExponent = 2</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>An exponent determining how fast the light attenuates with increasing distance. Set to 0 to disable distance attenuation.  </p>

<p class="definition">Definition at line <a class="el" href="_lights_8cs_source.html#l00420">420</a> of file <a class="el" href="_lights_8cs_source.html">Lights.cs</a>.</p>

</div>
</div>
<a id="a5c39aabb3788738f50974651f08504ae" name="a5c39aabb3788738f50974651f08504ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c39aabb3788738f50974651f08504ae">&#9670;&#160;</a></span>Intensity</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double VectSharp.ThreeD.MaskedLightSource.Intensity</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The base intensity of the light.  </p>

<p class="definition">Definition at line <a class="el" href="_lights_8cs_source.html#l00415">415</a> of file <a class="el" href="_lights_8cs_source.html">Lights.cs</a>.</p>

</div>
</div>
<a id="a7d691ed7328aeec4de160a180582760f" name="a7d691ed7328aeec4de160a180582760f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d691ed7328aeec4de160a180582760f">&#9670;&#160;</a></span>Origin</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Point3D VectSharp.ThreeD.MaskedLightSource.Origin</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The projection of the <a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#aec1e3d72451a22404b5c9477af9764b4" title="The position of the light source.">Position</a> on the mask plane along the light's <a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html#abfd20c38eef9066e9f398824c5c75435" title="The direction of the light.">Direction</a>.  </p>

<p class="definition">Definition at line <a class="el" href="_lights_8cs_source.html#l00398">398</a> of file <a class="el" href="_lights_8cs_source.html">Lights.cs</a>.</p>

</div>
</div>
<a id="aec1e3d72451a22404b5c9477af9764b4" name="aec1e3d72451a22404b5c9477af9764b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec1e3d72451a22404b5c9477af9764b4">&#9670;&#160;</a></span>Position</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Point3D VectSharp.ThreeD.MaskedLightSource.Position</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The position of the light source.  </p>

<p class="definition">Definition at line <a class="el" href="_lights_8cs_source.html#l00393">393</a> of file <a class="el" href="_lights_8cs_source.html">Lights.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>VectSharp.ThreeD/<a class="el" href="_lights_8cs_source.html">Lights.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_vect_sharp.html">VectSharp</a></li><li class="navelem"><a class="el" href="namespace_vect_sharp_1_1_three_d.html">ThreeD</a></li><li class="navelem"><a class="el" href="class_vect_sharp_1_1_three_d_1_1_masked_light_source.html">MaskedLightSource</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
  </ul>
</div>
</body>
</html>
